<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改问题反馈记录')" />
</head>

<style>
    * {
        padding: 0;
        margin: 0;
    }

    /*隐藏div*/
    .hidden-block {
        display: none;
    }

    /*行div块*/
    .line {
        width: 80%;
        margin-left: 10%;
        margin-top: 3%;
        height: 30%;
    }

    /*信息的label*/
    .line-label {
        width: 25%;
        float: left;
        font-size: 18px;
        color: black;
        font-weight: 500;
    }

    /*信息的value*/
    .line-value {
        width: 75%;
        height: 100%;
        float: left;
        resize: none;
        font-size: 15px;
    }

    /*状态下拉选择框*/
    .select {
        width: 100%;
        padding: 6px 8px 6px 8px;
        font-size: 15px;
    }

    /* 活动问题反馈内容 */
    .feedbackContent {
        background-color: #F0F2F5;
        white-space:normal;
        word-break:break-all;
        word-wrap:break-word;
    }
</style>


<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-feedback-edit" th:object="${vtspFeedback}">
            <input name="feedbackId" th:field="*{feedbackId}" type="hidden">

            <div class="line">
                <div class="form-group">
                    <label class="line-label">问题反馈内容：</label>
                    <div class="feedbackContent form-control line-value" name="feedbackContent">[[*{feedbackContent}]]</div>
                </div>
            </div>

            <div class="line">
                <div class="form-group">
                    <label class="line-label">应答内容：</label>
                    <div>
                        <textarea name="feedbackAnswer" class="form-control line-value" rows="6" cols="50">[[*{feedbackAnswer}]]</textarea>
                    </div>
                </div>
            </div>

            <div class="line">
                <div class="form-group">
                    <label class="line-label">处理状态：</label>
                    <div class="line-value">
                        <select class="select" name="state" th:with="type=${@dict.getType('feedback_state2')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                    th:value="${dict.dictValue}">[[*{state}]]</option>
                        </select>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        /** 设置iframe */
        //  更改iframe的title标签内容
        parent.document.getElementsByClassName('layui-layer-title')[0].innerText = "修改反馈处理";

        /** 框架自带部分 */
        var prefix = ctx + "vtsp/feedback";
        $("#form-feedback-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-feedback-edit').serialize());
            }
        }
    </script>
</body>
</html>